package com.lt.basic.project.pojo.validate.mino.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * la_user_visits创建对象
 * @author ：LT
 * @Created in : 2023-08-31
 */
@Data
@ApiModel(value="UserVisits创建对象", description = "创建对象")
public class UserVisitsCreateValidate implements Serializable {

    private static final long serialVersionUID=1L;



    /**
     * 用户id
     */
    @NotNull(message = "用户id参数缺失")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 请求类型: GET/POST/PUT
     */
    @NotNull(message = "请求类型: GET/POST/PUT参数缺失")
    @ApiModelProperty(value = "请求类型: GET/POST/PUT")
    private String type;

    /**
     * 请求IP
     */
    @NotNull(message = "请求IP参数缺失")
    @ApiModelProperty(value = "请求IP")
    private String ip;

    /**
     * 请求接口
     */
    @NotNull(message = "请求接口参数缺失")
    @ApiModelProperty(value = "请求接口")
    private String url;

    /**
     * 请求方法
     */
    @NotNull(message = "请求方法参数缺失")
    @ApiModelProperty(value = "请求方法")
    private String method;

    /**
     * 请求参数
     */
    @ApiModelProperty(value = "请求参数")
    private String args;


}